package com.sunb2b.entity;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * ViewCount entity. @author MyEclipse Persistence Tools
 */

public class ViewCount implements java.io.Serializable {

	// Fields
	public static final SimpleDateFormat formatter = new SimpleDateFormat("yyyy-mm-dd hh:ss");
	private Integer id;
	private String module;
	private Integer entityId;
	private Integer count;
	private Date lastDate;
	private String sLastDate;

	public static final String MODULE_PRODUCT = "product";
	
	// Constructors

	/** default constructor */
	public ViewCount() {
	}

	/** full constructor */
	public ViewCount(String module, Integer entityId, Integer count,
			Timestamp lastDate) {
		this.module = module;
		this.entityId = entityId;
		this.count = count;
		this.lastDate = lastDate;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getModule() {
		return this.module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public Integer getEntityId() {
		return this.entityId;
	}

	public void setEntityId(Integer entityId) {
		this.entityId = entityId;
	}

	public Integer getCount() {
		return this.count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Date getLastDate() {
		return this.lastDate;
	}

	public void setLastDate(Date lastDate) {
		this.lastDate = lastDate;
	}

	public String getsLastDate() {
		return sLastDate;
	}

	public void setsLastDate(String sLastDate) {
		this.sLastDate = sLastDate;
	}

}